package com.example.aigc_education.integration.emuns;

import lombok.Getter;

@Getter
public enum CozeAsyncWorkflow {

    GEN_QZ("生成试题","quizzes", "7433401920917831707"),
    GEN_FC("生成抽认卡","flashcards","7433403629804453915"),
    STUDY_PLAN("生成学习计划","study_plan", "7502071706182369291"),
    WEB_SEARCH("AI搜索网络资源","web_search", "7433399261227106345"),

    AI_TEACHER("AI老师","ai_teacher", "7481364035108388876");

    private final String name;
    private final String value;
    private final String workflowId;

    CozeAsyncWorkflow(String name, String value, String workflowId) {
        this.name = name;
        this.value = value;
        this.workflowId = workflowId;
    }

    public static CozeAsyncWorkflow fromValue(String value) {
        for (CozeAsyncWorkflow workflow : CozeAsyncWorkflow.values()) {
            if (workflow.getValue().equals(value)) {
                return workflow;
            }
        }
        throw new IllegalArgumentException("No enum constant with value " + value);
    }
}
